<div class="btn-group">
  <button type="button"
          class="btn btn-default navbar-btn dropdown-toggle"
          data-ng-mouseover="init()"
          data-toggle="dropdown">
    <i class="fa fa-group"></i>
    <span data-translate="" class="visible-lg">group</span>&nbsp;<span class="caret"></span>
  </button>
  <ul class="dropdown-menu"
      role="menu">
    <li role="presentation" class="dropdown-header"
        data-translate="">setMetadataGroup
    </li>
    <li data-ng-show="groups.length > 10">
      <input class="form-control"
             data-ng-model="groupSearch.$"
             placeholder="{{'filter' | translate}}"/>
    </li>
    <li data-ng-repeat="g in groups | filter:groupSearch | orderBy:sortByLabel"
        role="menuitem">
      <a data-ng-click="assignGroup(g, $event)" href="">
        <i class="fa" data-ng-class="g.id == groupOwner ? 'fa-dot-circle-o' : 'fa-circle-o'"></i>
        &#160;
        <span>{{g.label[lang]}}</span>
      </a>
    </li>
  </ul>
</div>
